﻿using Domain.Entities.Modulers;
using FluentMigrator;
using FrameworkCore.Extensions;

namespace Domain.Migrations.Modulers;

[Migration(202412241844)]
public class ModulerAddColumn : ForwardOnlyMigration
{
    public override void Up()
    {
        Alter.Table(MigrationExpressions.GetTableName(typeof(Moduler)))
          .AddColumn(MigrationExpressions.ColumnNameFor<Moduler>(nameof(Moduler.Name))).AsString(100).Nullable().WithColumnDescription("名称")
          .AddColumn(MigrationExpressions.ColumnNameFor<Moduler>(nameof(Moduler.Version))).AsString(20).Nullable().WithColumnDescription("版本号");
    }
}